package br.edu.com1263.negocio;

import java.util.Collection;

import br.edu.com1263.dao.ParadigmaDAO;
import br.edu.com1263.model.Paradigma;


public class ParadigmaFacadeImpl implements ParadigmaFacade{
	private ParadigmaDAO ParadigmaDAO;
	
	public ParadigmaFacadeImpl(ParadigmaDAO ParadigmaDAO){
		this.ParadigmaDAO = ParadigmaDAO;
	}

	@Override
	public Paradigma consultar(Long id) {
		return ParadigmaDAO.consultar(id);
	}

	@Override
	public Collection<Paradigma> consultarTodos() {
		return ParadigmaDAO.consultarTodos();
	}

	@Override
	public void salvar(Paradigma paradigma) {
		ParadigmaDAO.salvar(paradigma);
		
	}

	@Override
	public void alterar(Paradigma paradigma) {
		ParadigmaDAO.alterar(paradigma);
	}

	@Override
	public void remover(Paradigma paradigma) {
		ParadigmaDAO.remover(paradigma);
	}

}
